package com.b511.swpu.cementbackend.util.enumeration;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum Code {
    SUCCESS(200, "操作成功"),
    FAIL(500, "操作失败"),
    ILLEGAL(501, "非法闯入"),
    REFRESH(401, "登录信息过期，请重新登录"),
    AUTH_FAIL(403, "验证失败"),
    VALIDATE_FAIL(410, "数据校验失败"),
    SELECT_FAIL(601, "查无此信息"),
    INSERT_FAIL(602, "新增失败"),
    DELETE_FAIL(603, "删除失败"),
    UPDATE_FAIL(604, "更新失败"),
    LOGIN_FAIL(700,"登录失败"),
    ACCOUNT_DISCONTINUED(701,"账号已被停用"),
    DELETE_LAST_DICTIONARY(702,"禁止删除字典最后一个节点"),
    USER_EXIST(703,"用户已存在"),
    USER_NOT_EXIST(704,"用户不存在"),
    INSUFFICIENT_PRIVILEGE(705,"用户不存在"),
    PSW_ERROR(706, "密码输入错误"),
    WELL_FAIL(801,"该井已存在"),
    WELLInfo_FAIL(802,"井名、国别、区块、区域、油田的值应互不相等");

    private int code;
    private String msg;
}
